package com.scnb.TemplateMethod;

public class Main {
    public static void main(String[] args) {
       Father f = new C1();
       f.m();
    }
}

abstract class Father {
    void m() {
       op1();
       op2();
    }

    abstract void op1();
    abstract void op2();
}

class C1 extends Father {

    @Override
    void op1() {
        System.out.println("op1");
    }

    @Override
    void op2() {
        System.out.println("op2");
    }
}